﻿@if (Request.IsAuthenticated)
{
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="80">
                您好, @*@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!*@
                @Html.Label(User.Identity.Name)!
                @using (Html.BeginForm("Index", "Home", FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                    <a href="javascript:document.getElementById('logoutForm').submit()">退出 </a>
                }
            </td>
        </tr>
    </table>
}
else
{
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="80">
                登录人：王书明 | 退出登录 @*<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>*@
            </td>
        </tr>
    </table>
}
